/****************************************************************************//**
 * @file    array_helper.h
 * @author  İsmail SEZEN (email: sezenismail@gmail.com)
 * @date    06.02.2011
 *
 * <b>Description</b>
 *
 * Header file for array_helper.c\n
 *
 * Copyright (C) 2010 İsmail SEZEN
 *
 * <b>License</b>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *****************************************************************************/

/*! \brief A general type-independent malloc macro */
#define arr_malloc(type,count) ( (type*) xmalloc((count) * sizeof(type)) )

extern void* xmalloc (size_t size);
extern void* xrealloc(void* arr, size_t size);

/** short */
extern short*** arr_3d_short(int N1, int N2, int N3);
/** char */
extern char*** arr_2d_char2p( int N1, int N2);
extern char** arr_2d_char( int N1, int N2);
extern char*** arr_3d_char(int N1, int N2, int N3);
